package com.link.base.ext.autocfg.dao.mybatis.mapper;


import com.link.core.basic.dao.mapper.BasicMapper;
import com.link.base.ext.autocfg.model.AutoCfgItemSub;

import java.util.List;

public interface AutoCfgItemSubMapper extends BasicMapper<AutoCfgItemSub> {

    /**
     * <p>根据父ID删除数据</p>
     *
     * @author yrf
     * @param record
     * @return
     */
    public int deleteByParentId(AutoCfgItemSub record);

    /**
     * <p>查询与标准记录关联的记录信息</p>
     *
     * @author yrf
     * @param record
     * @return
     */
    public List<AutoCfgItemSub> queryAllByBasicStandardId(AutoCfgItemSub record);

    /**
     * <p>更新关联当前记录的拷贝</p>
     *
     * @author yrf
     * @param record
     * @return
     */
    public int updateLinkRecordByBasicId(AutoCfgItemSub record);

    /**
     * <p>删除关联当前记录的拷贝</p>
     *
     * @author yrf
     * @param record
     * @return
     */
    public int deleteLinkRecordByBasicId(AutoCfgItemSub record);
}
